package cn.iocoder.yudao.module.etl.controller.admin.authModel;

import cn.iocoder.yudao.module.etl.dto.authModel.VAuthModelDTO;
import cn.iocoder.yudao.module.etl.request.VAuthModelRequest;
import cn.iocoder.yudao.module.etl.service.authModel.VAuthModelService;
import cn.iocoder.yudao.module.etl.utils.ResultHolder;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author: wangjiahao
 * Date: 2021/11/5
 * Description:
 */
@Api(tags = "授权树：授权树模型")
@ApiSupport(order = 80)
@RestController
@RequestMapping("etl/authModel")
public class VAuthModelController {
    @Resource
    private VAuthModelService vAuthModelService;

    @PostMapping("/queryAuthModel")
    public ResultHolder queryAuthModel(@RequestBody VAuthModelRequest request){
        List<VAuthModelDTO> vAuthModelDTOS = vAuthModelService.queryAuthModel(request);
        return ResultHolder.success(vAuthModelDTOS) ;
    }
}
